﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _05._01.ToUpperCase
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Enter a word with all lower case:");
            string lowerCaseWord = Console.ReadLine();
            string upperCaseWord = string.Empty;

            foreach (char letter in lowerCaseWord)
            {
                // get the unicode number of the letter.
                int letterCode = letter;

                upperCaseWord += (char) (letterCode - 32);
            }

            Console.WriteLine(upperCaseWord);
        }
    }
}
